using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;

namespace CrateManiaPipeline
{
    [ContentProcessor(DisplayName = "Tiled tileset Processor")]
    public class TilesetProcessor : ContentProcessor<TilesetContent, TilesetContent>
    {
        public override TilesetContent Process(TilesetContent input, ContentProcessorContext context)
        {
            // actually build the tileset texture
            input.TilesetImage = context.BuildAsset<Texture2DContent, Texture2DContent>(input.TilesetImage, "");
            return input;
        }
    }
}